package com.ocom.human.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ocom.common.entity.master.EntityMngUserInfo;
import com.ocom.common.entity.master.EntityWechatPerInfo;

import java.util.List;

public interface WechatPerInfoService extends IService<EntityWechatPerInfo> {
    /**
     * 获取企业ids
     * @return
     */
    List<Long> getCompanyIdsByOpenid(String openid);


    EntityWechatPerInfo saveWxUser(EntityWechatPerInfo entityWechatPerInfo);

    EntityWechatPerInfo getWxUserByPid(Long companyId,Long pId,String appId);
    //查找appid、com_id、p_id匹配的记录
    public EntityWechatPerInfo getWechatPerInfo(Long companyId, Long userId, String appid);

    boolean removePerson(Long companyId,Long pId);

    EntityWechatPerInfo GetWxPerson(String appId, String openId,Long comId);

    void DelWxPerson(String appId, String openId);

    List<EntityMngUserInfo> getWxAdminInfo(String appId, String openId);
}
